@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: '发票抬头'
@Metadata.allowExtensions: true
define root view entity ZI_INVOICE_HEAD
  as select from I_BillingDocument  
  association [*] to ZI_INVOICE_ITEM as _Item on $projection.BillingDocument = _Item.BillingDocument

{
  key BillingDocument,
      BillingDocumentType,
      CreatedByUser,
      CreationDate,
      CreationTime,
      SalesOrganization,
      BillingDocumentDate,
      @Semantics.amount.currencyCode: 'TransactionCurrency'
      TotalNetAmount,
      TransactionCurrency,
      @Semantics.amount.currencyCode: 'TransactionCurrency'
      TotalTaxAmount,
      SoldToParty,
      _Item

}
